package com.kpmg.datalake.common.model;

import com.kpmg.datalake.db.dao.RqsAccbookMapper;
import com.kpmg.datalake.db.dao.RqsListMapper;
import com.kpmg.datalake.db.model.Project;

import javax.sql.DataSource;
import java.io.Serializable;

/**
 * 查询请求处理参数
 * @author Tony
 */
public class QueryRequestParam implements Serializable{
	
	private static final long serialVersionUID = 538030786802396875L;
	
	/**
	 * 数据库信息
	 */
    private transient DataSource database;
	/**
	 * 查询条件
	 */
	private DataExportCondition condition;
	/**
	 * 请求编号
	 */
	private String requestNo;
	/**
	 * 查询请求表Mapper
	 */
	private transient RqsListMapper rqsListMapper; 
	/**
	 * 请求账簿表Mapper
	 */
	private transient RqsAccbookMapper rqsAccbookMapper;
	
	/**
	 * 个人路径
	 */
	private String personalPath;
	
	/**
	 * 客户信息
	 */
	private Project project;
    /**
     * 执行的sql
     */
    private String sqlText;

    public DataSource getDatabase() {
		return database;
    }

    public void setDatabase(DataSource database) {
		this.database = database;
	}
	public DataExportCondition getCondition() {
		return condition;
	}
	public void setCondition(DataExportCondition condition) {
		this.condition = condition;
	}
	public String getRequestNo() {
		return requestNo;
	}
	public void setRequestNo(String requestNo) {
		this.requestNo = requestNo;
	}
	public RqsListMapper getRqsListMapper() {
		return rqsListMapper;
	}
	public void setRqsListMapper(RqsListMapper rqsListMapper) {
		this.rqsListMapper = rqsListMapper;
	}
	public RqsAccbookMapper getRqsAccbookMapper() {
		return rqsAccbookMapper;
	}
	public void setRqsAccbookMapper(RqsAccbookMapper rqsAccbookMapper) {
		this.rqsAccbookMapper = rqsAccbookMapper;
	}
	public String getPersonalPath() {
		return personalPath;
	}
	public void setPersonalPath(String personalPath) {
		this.personalPath = personalPath;
	}
	public Project getProject() {
		return project;
	}
	public void setProject(Project project) {
		this.project = project;
    }

    public String getSqlText() {
        return sqlText;
    }

    public void setSqlText(String sqlText) {
        this.sqlText = sqlText;
    }
}
